﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;

namespace WorkNodeFramework
{
    /// <summary>
    /// Summary for the SubSonicSection class
    /// </summary>
    public class WorkNodeSection : ConfigurationSection
    {
        /// <summary>
        /// Gets the providers.
        /// </summary>
        /// <value>The providers.</value>
        [ConfigurationProperty(ConfigurationSectionName.PROVIDERS)]
        public ProviderSettingsCollection Providers
        {
            get { return (ProviderSettingsCollection)base[ConfigurationSectionName.PROVIDERS]; }
        }

        /// <summary>
        /// Gets or sets the default provider.
        /// </summary>
        /// <value>The default provider.</value>
        [ConfigurationProperty(ConfigurationPropertyName.DEFAULT_PROVIDER, DefaultValue = DataProviderTypeName.SQL_SERVER)]
        public string DefaultProvider
        {
            get { return (string)base[ConfigurationPropertyName.DEFAULT_PROVIDER]; }
            set { base[ConfigurationPropertyName.DEFAULT_PROVIDER] = value; }
        }
    }
}
